package com.example.pilipili.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author liyv
 * @since 2023-12-01
 */
@Data
public class Video implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Size(max = 45)
    private String title;

    private LocalDate time;

    private Integer uid;

    @Size(max = 50)
    private String vUrl;
    @Size(max = 50)
    private String note;

    /**
     * 0：草稿
1：待审核
2：审核通过（发布
3：审核驳回

     */
    @Min(0)
    @Max(3)
    private Integer status;

    private Integer click;

    private Integer tid;

    @Size(max = 50)
    private String iUrl;




    @Override
    public String toString() {
        return "Video{" +
        "id=" + id +
        ", title=" + title +
        ", time=" + time +
        ", uid=" + uid +
        ", vUrl=" + vUrl +
        ", status=" + status +
        ", click=" + click +
        ", tid=" + tid +
        ", iUrl=" + iUrl +
        ", note=" + note +
        "}";
    }
}
